package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the permissionallocation database table.
 * 
 */
@Entity
@Table(name="permissionallocation")
@NamedQuery(name="Permissionallocation.findAll", query="SELECT p FROM Permissionallocation p")
public class Permissionallocation implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String allid;

	private String pertype;

	//bi-directional many-to-one association to Permission
	@ManyToOne
	@JoinColumn(name="perid")
	private Permission permission;

	//bi-directional many-to-one association to Role
	@ManyToOne
	@JoinColumn(name="roleid")
	private Role role;

	public Permissionallocation() {
	}

	public String getAllid() {
		return this.allid;
	}

	public void setAllid(String allid) {
		this.allid = allid;
	}

	public String getPertype() {
		return this.pertype;
	}

	public void setPertype(String pertype) {
		this.pertype = pertype;
	}

	public Permission getPermission() {
		return this.permission;
	}

	public void setPermission(Permission permission) {
		this.permission = permission;
	}

	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

}